﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace ProyectoIngenieriaSoftware.Administracion
{
    public partial class Formulario_web13 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          Menu MasterMenu;
          MasterMenu = (Menu)Master.FindControl("NavigationMenu");       
          MasterMenu.Visible=false;

          if (Roles.IsUserInRole("Administracion") || Roles.IsUserInRole("Cajero") || Roles.IsUserInRole("Bodega"))
            {
               Response.Redirect("indexAdministracion.aspx");
            }
        }

        protected void Login1_LoggedIn2(object sender, EventArgs e)
        {
           Response.Redirect("indexAdministracion.aspx");
        }

        protected void LoginView1_ViewChanged(object sender, EventArgs e)
        {

        }
       
        }
    }
